/*
CREATE TABLE "base_de_az_cost" (
  "sequence_nbr" varchar PRIMARY KEY NOT NULL,
  "de_code" varchar,
  "cg_name" varchar,
  "major" varchar,
  "storey" varchar,
  "meter" varchar,
  "is_default" integer,
  "rec_user_code" varchar,
  "rec_status" varchar DEFAULT ('A'),
  "rec_date" varchar,
  "extend1" varchar,
  "extend2" varchar,
  "extend3" varchar,
  "description" varchar
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseDeAzCost {
    pub sequence_nbr: String,
    pub de_code: Option<String>,
    pub cg_name: Option<String>,
    pub major: Option<String>,
    pub storey: Option<String>,
    pub meter: Option<String>,
    pub is_default: Option<i32>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<String>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
}

crud!(BaseDeAzCost {}, "base_de_az_cost");
